import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children:[
      {
        path:'/',
        redirect:'index'
      },
      {
        path: 'index',
        name: 'Index',
        component: () => import(/* webpackChunkName: "about" */ '../views/Index.vue')
      },
      {
        path: 'about',
        name: 'About',
        component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
      } ,
      {
        path: 'second',
        name: 'Second',
        component: () => import(/* webpackChunkName: "about" */ '../views/Second.vue')
      },
      {
        path: 'personnelFile',
        name: 'PersonnelFile',
        component: () => import('../views/humanResourse/PersonnelFile.vue')
      }
    ]
  },

]

const router = new VueRouter({
  routes
})

export default router
